package com.example.myadmin.student.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.myadmin.dept.entity.Dept;
import com.example.myadmin.student.entity.Student;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class StudentVo extends Student {
    private Dept dept;

    public StudentVo(Integer stuId, String name, String sex, Integer age, String className, Date birthday, String address, Integer deptId, Dept dept) {
        super(stuId, name, sex, age, className, birthday, address, deptId);
        this.dept = dept;
    }

    public StudentVo(Dept dept) {
        this.dept = dept;
    }

    public StudentVo() {
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
